package com.jspgou.core.dao;

import java.util.List;

import com.jspgou.common.hibernate3.Updater;
import com.jspgou.common.page.Pagination;
import com.jspgou.core.entity.ShopDictionary;

public interface ShopDictionaryDao {
	public Pagination getPage(String queryType,int pageNo, int pageSize);
	
	public List<ShopDictionary> getList(String type);
	
	public List<String> getTypeList();

	public ShopDictionary findById(Integer id);
	
	public ShopDictionary findByValue(String type,String value);

	public ShopDictionary save(ShopDictionary bean);

	public ShopDictionary updateByUpdater(Updater<ShopDictionary> updater);

	public ShopDictionary deleteById(Integer id);

	public int countByValue(String value, String type);
}